/**
 *
 * @authors yanwl
 * @date    2014-09-01 
 */

//菜单切换
function nTabs(thisObj, Num) {
    if (thisObj.className == "on") return;
    var tabObj = thisObj.parentNode.id;
    var tabList = document.getElementById(tabObj).getElementsByTagName("li");
    for (i = 0; i < tabList.length; i++) {
        if (Num == 1) {
            $("#imgPage").hide();
        } else {
            $("#imgPage").show();
        }

        if (i == Num) {
            thisObj.className = "active";
            document.getElementById(tabObj + "_Content" + i).style.display = "block";
        } else {
            tabList[i].className = "sta";
            document.getElementById(tabObj + "_Content" + i).style.display = "none";
        }
    }
}
